﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Sketchial.Business;
using Sketchial.Data;

namespace Skecthial.UI.Controls
{
    public partial class UserProfile : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //DataCreateHelper.CreateUsers();
            LoginHelper loginHelper = new LoginHelper();
            UserEntity usr = loginHelper.GetUserInfoByFacebookID("123");
            txbUserName.Text = usr.Name;
            txbSurname.Text = usr.Surname;
            txtNickName.Text = usr.UserName;
            if (usr.Gender == "Male")
                ddlGender.Items[0].Selected = true;
            else
                ddlGender.Items[1].Selected = true;
            txtWeb.Text = usr.Email;

            profileImg.ImageUrl = "../assets/images/profile.jpg";
        }
    }
}